package org.simp.core.request;

import org.simp.core.body.SimpBody;
import org.simp.core.head.SimpHeader;
import org.simp.core.message.SimpMessage;
import org.simp.core.message.SimpMessageWraper;
import org.simp.session.SimpSession;

/**
 * @author zhuhaitao at 2014-5-22
 *
 * SIMP request 接口
 */
public interface SimpRequest {

	public SimpSession getSession();
	
	public SimpMessage getSimpMessage();
	
	public String getObjAddress();
	
	public String getSrcAddress();
	
	public void setObjAddress(String objAddress);
	
	public void setSrcAddress(String srcAddress);
	
	public void setAttribute(String key,Object value);
	
	public Object getAttribute(String key);
	
	public SimpHeader getHead();
	
	public SimpBody getBody();
	
	public void setBody(SimpBody body);
	
	public String getHead(String key);
	
	public boolean hasBody();
	
	public void write(SimpMessage message);
}
